package com.zdy.im.user.entity;

import com.sixeco.framework.common.data.BaseEntity;
import com.sixeco.framework.common.api.ApiDesc;
import com.sixeco.framework.core.db.ext.DS;
import com.zdy.im.user.ImDatasourceName;

/**
 * @Title: ImJoinFriend.java
 * @Description: 用户加为好友申请信息记录表的数据模型
 * @Author 作者 : zdy
 * @CreateDate 创建时间: 2021-02-30
 * @version V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
@DS(ImDatasourceName.IM_DATA_NAME)
public class ImJoinFriend extends BaseEntity{

private static final long serialVersionUID = 1L;




 		/** status 删除状态(1-正常,0-已删除)  */
 		@ApiDesc(value = "删除状态(1-正常,0-已删除)", required = 0)
 		private int status;

 		/** sendUserId 消息来源用户名  */
 		@ApiDesc(value = "消息来源用户名", required = 0)
 		private long sendUserId;

 		/** sendUserName 消息来源用户名  */
 		@ApiDesc(value = "消息来源用户名", required = 0)
 		private String sendUserName;

 		/** sendUserImg 发送者头像  */
 		@ApiDesc(value = "发送者头像", required = 0)
 		private String sendUserImg;

 		/** globalId 消息唯一值id,使用雪花算法生成唯一id;用于排序和搜索使用  */
 		@ApiDesc(value = "消息唯一值id,使用雪花算法生成唯一id;用于排序和搜索使用", required = 0)
 		private long globalId;

 		/** content 申请时填写的内容  */
 		@ApiDesc(value = "申请时填写的内容", required = 0)
 		private String content;

 		/** toId 消息的接收id  */
 		@ApiDesc(value = "消息的接收id", required = 0)
 		private long toId;

 		/** toUserName 消息的接收者名称  */
 		@ApiDesc(value = "消息的接收者名称", required = 0)
 		private String toUserName;

 		/** toUserImg 消息的接收者头像,如果是群则为空  */
 		@ApiDesc(value = "消息的接收者头像,如果是群则为空", required = 0)
 		private String toUserImg;

 		/** joinStatus 0.未读 1.同意  2.拒绝,3.删除  */
 		@ApiDesc(value = "0.未读 1.同意  2.拒绝,3.删除", required = 0)
 		private int joinStatus;


    public static ImJoinFriend build(){
        return new ImJoinFriend();
    }

 		public void setStatus( int status){
 		 		this.status = status ; 
 		 		}
 		public ImJoinFriend toStatus( int status){
 		 		this.status = status ; 
 		 		 return this ;
 		}

 		public int getStatus(){
 		 		return this.status;
 		}
 		public void setSendUserId( long sendUserId){
 		 		this.sendUserId = sendUserId ; 
 		 		}
 		public ImJoinFriend toSendUserId( long sendUserId){
 		 		this.sendUserId = sendUserId ; 
 		 		 return this ;
 		}

 		public long getSendUserId(){
 		 		return this.sendUserId;
 		}
 		public void setSendUserName( String sendUserName){
 		 		this.sendUserName = sendUserName ; 
 		 		}
 		public ImJoinFriend toSendUserName( String sendUserName){
 		 		this.sendUserName = sendUserName ; 
 		 		 return this ;
 		}

 		public String getSendUserName(){
 		 		return this.sendUserName;
 		}
 		public void setSendUserImg( String sendUserImg){
 		 		this.sendUserImg = sendUserImg ; 
 		 		}
 		public ImJoinFriend toSendUserImg( String sendUserImg){
 		 		this.sendUserImg = sendUserImg ; 
 		 		 return this ;
 		}

 		public String getSendUserImg(){
 		 		return this.sendUserImg;
 		}
 		public void setGlobalId( long globalId){
 		 		this.globalId = globalId ; 
 		 		}
 		public ImJoinFriend toGlobalId( long globalId){
 		 		this.globalId = globalId ; 
 		 		 return this ;
 		}

 		public long getGlobalId(){
 		 		return this.globalId;
 		}
 		public void setContent( String content){
 		 		this.content = content ; 
 		 		}
 		public ImJoinFriend toContent( String content){
 		 		this.content = content ; 
 		 		 return this ;
 		}

 		public String getContent(){
 		 		return this.content;
 		}
 		public void setToId( long toId){
 		 		this.toId = toId ; 
 		 		}
 		public ImJoinFriend toToId( long toId){
 		 		this.toId = toId ; 
 		 		 return this ;
 		}

 		public long getToId(){
 		 		return this.toId;
 		}
 		public void setToUserName( String toUserName){
 		 		this.toUserName = toUserName ; 
 		 		}
 		public ImJoinFriend toToUserName( String toUserName){
 		 		this.toUserName = toUserName ; 
 		 		 return this ;
 		}

 		public String getToUserName(){
 		 		return this.toUserName;
 		}
 		public void setToUserImg( String toUserImg){
 		 		this.toUserImg = toUserImg ; 
 		 		}
 		public ImJoinFriend toToUserImg( String toUserImg){
 		 		this.toUserImg = toUserImg ; 
 		 		 return this ;
 		}

 		public String getToUserImg(){
 		 		return this.toUserImg;
 		}
 		public void setJoinStatus( int joinStatus){
 		 		this.joinStatus = joinStatus ; 
 		 		}
 		public ImJoinFriend toJoinStatus( int joinStatus){
 		 		this.joinStatus = joinStatus ; 
 		 		 return this ;
 		}

 		public int getJoinStatus(){
 		 		return this.joinStatus;
 		}
}